//---------------------------------------------------------------------------
// The confidential and proprietary information contained in this file may
// only be used by a person authorised under and to the extent permitted
// by a subsisting licensing agreement from ARM Limited.
//
//            (C) COPYRIGHT 2003-2012 ARM Limited.
//                ALL RIGHTS RESERVED
//
// This entire notice must be reproduced on all copies of this file
// and copies of this file may only be made by a person if such person is
// permitted to do so under the terms of a subsisting license agreement
// from ARM Limited.
//
// Filename            : $RCSfile: UtilityAxi.cpp,v $
//
// Checked In          :  2013-05-08 18:20:26 +0100 (Wed, 08 May 2013)
//
// Revision            : 149902
//
// Release Information : PL401-r0p1-00eac0
//
//---------------------------------------------------------------------------

//-------------------------------------------------------------------------
// Definitions
//-------------------------------------------------------------------------

//-------------------------------------------------------------------------
// Include files
//-------------------------------------------------------------------------

//-----------------------
// Standard include files

// Device specific include files

#include "UtilityApb.h"

//---------------------------------------------------------------------
// Constructor
//---------------------------------------------------------------------

UtilityApb::UtilityApb() : 
  Utility()
{
}

bool UtilityApb::CheckTransfer(arm_uint32 Address, amba_length Length, amba_size Size, bool Msg)
{
  bool Flag = 1;

  if (Length != 1)
  {
    if (Msg)
      cerr << "Error: Illegal Length: " << (int)Length << endl;
    Flag = 0;
  }

  if (Size != 2)
  {
    if (Msg)
      cerr << "Error: Illegal Size: " << Size << endl;
    Flag = 0;
  }
  return(Flag);
}



